<template>
	<view class="set">
		<app-title title='设置'></app-title>
		<view class="set_box">
			<uv-cell-group>
				<uv-cell title="登录密码" isLink url="/pages/member/set_password/set_password?type=0"></uv-cell>
				<!-- <uv-cell title="支付密码" isLink url="/pages/member/set_password/set_password?type=1"></uv-cell> -->
			</uv-cell-group>
			<view class="set_box_button">
				<button @click="quitloginFun">退出登录</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			//提示
			showinteraction(title, icon = 'none') {
				uni.showToast({
					title,
					icon,
					duration: 2000,
					mask: false
				})
			},
			quitloginFun() {
				this.showinteraction('退出成功');
				setTimeout(() => {
					uni.clearStorage();
					uni.reLaunch({
						url: '/pages/member/member'
					})
				}, 1000)
			},
		}
	}
</script>

<style lang="scss">
	.set {
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: column;

		.set_box {
			width: 100%;
			flex: 1;
			overflow-y: auto;

			.set_box_button {
				padding: 0 20rpx;

				button {
					border-radius: 100rpx;
					border: none;
					background-color: #ff6000;
					color: #fff;
					margin-top: 40rpx;
				}
			}
		}

	}
</style>